/*
Copyright (C) 2011  Christoph Schnack, Berlin (Germany)

This file is part of Tribuit.

    Tribuit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Tribuit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Tribuit.  If not, see <http://www.gnu.org/licenses/>.
*/
package Wordcheck;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import Settings.Language;
import Storage.Word;
import Wordcheck.Wordcheck.StartListener;

/**
 * @author Christoph Schnack
 *
 */
class StartPanel extends JPanel{
	JButton startBtn;
	public StartPanel(Language LANG, ActionListener startListener){
		super();
		this.setLayout(new GridBagLayout());
		GridBagConstraints gbc = new GridBagConstraints();
		gbc.insets = new Insets(10,10,10,10);
		startBtn = new JButton(LANG.getStart());
		startBtn.addActionListener(startListener);
		JLabel msgLabel = new JLabel(LANG.getWckStartWithEnter());
		msgLabel.setFont(new Font(Font.SANS_SERIF,Font.BOLD,25));
		gbc.fill = GridBagConstraints.NONE;
		this.add(msgLabel,gbc);
		gbc.gridy = 1;
		this.add(startBtn,gbc);
	}
	
	public void grabFocusStartBtn(){
		startBtn.grabFocus();
	}
}
